﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace FlyingHat.Core.Migrations
{
    public partial class cls_sort : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "Sort",
                table: "Classification",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 21, 22, 45, 10, 567, DateTimeKind.Local).AddTicks(9409), new DateTime(2021, 12, 21, 22, 45, 10, 567, DateTimeKind.Local).AddTicks(9414), new DateTime(2021, 12, 21, 22, 45, 10, 567, DateTimeKind.Local).AddTicks(9401), "2989021C230B7177DBB517FB323E0641", "F9DB1C0740D726F7703559DF205A169C2DAE661CC43734D8E95D93D3E4BB9A20E59DF2EA" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Sort",
                table: "Classification");

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 20, 13, 38, 59, 524, DateTimeKind.Local).AddTicks(6267), new DateTime(2021, 12, 20, 13, 38, 59, 524, DateTimeKind.Local).AddTicks(6270), new DateTime(2021, 12, 20, 13, 38, 59, 524, DateTimeKind.Local).AddTicks(6258), "73402F4C4AE5BB1ACB39A65F97D6850F", "E89EE4C71CCB9C357631A8BC48D8440FEEFD6C9100A9A41EA24F3CB2AB8812D31CEBA17B" });
        }
    }
}
